.cve-viewer {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;

    :global {
        .resize-box .resize-split-line:hover {
            border: 1px solid var(--Colors-Use-Main-Primary);
        }
    }
}

.cve-list {
    height: 100%;
    width: 100%;
    padding: 12px;
    padding-bottom: 0;

    .cve-list-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: calc(100% - 36px);
        justify-content: center;
    }

    .cve-list-title-body {
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        .cve-list-title-left {
            display: flex;
            align-items: center;
            .cve-list-title-query {
                display: flex;
                align-items: center;
                margin-right: 16px;
                .cve-list-title-query-text {
                    font-weight: 400;
                    font-size: 12px;
                    line-height: 16px;
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    margin-right: 4px;
                }
            }
        }

        .cve-list-title-extra {
            display: flex;
            align-items: center;
        }
    }
    .cve-list-title {
        color: var(--Colors-Use-Neutral-Text-1-Title);
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        margin-right: 8px;
    }
    .cve-list-total {
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        color: var(--Colors-Use-Neutral-Disable);
        margin-right: 8px;
        .cve-list-total-number {
            color: var(--Colors-Use-Main-Primary);
            margin-left: 4px;
        }
    }
    .cve-list-time {
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        color: var(--Colors-Use-Neutral-Disable);
    }
}

.cve-list-product-success {
    border: 1px solid var(--Colors-Use-Yellow-Border);
    color: var(--Colors-Use-Yellow-Primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 4px;
    width: fit-content;
    height: 22px;

    .cve-list-severity {
        padding: 2px 6px;
        border-right: 1px solid var(--Colors-Use-Yellow-Border);
        background-color: var(--Colors-Use-Yellow-Bg);
        border-radius: 4px 0 0 4px;
        height: 20px;
        line-height: 20px;
        display: flex;
        align-items: center;
    }

    .cve-list-baseCVSSv2Score {
        padding: 2px 6px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
        height: 20px;
        line-height: 20px;
        display: flex;
        align-items: center;
    }
}

.cve-description-product-success {
    height: auto;

    .cve-list-severity {
        height: auto;
    }

    .cve-list-baseCVSSv2Score {
        height: auto;
    }
}

.cve-list-product-warning {
    border: 1px solid var(--Colors-Use-Warning-Border);
    color: var(--Colors-Use-Warning-Primary);

    .cve-list-severity {
        border-right: 1px solid var(--Colors-Use-Warning-Border);
        background-color: var(--Colors-Use-Warning-Bg-Hover);
    }
}

.cve-list-product-danger {
    border: 1px solid var(--Colors-Use-Error-Border);
    color: var(--Colors-Use-Status-Serious);

    .cve-list-severity {
        border-right: 1px solid var(--Colors-Use-Error-Border);
        background-color: var(--Colors-Use-Error-Bg-Hover);
    }
}

.cve-list-product-serious {
    border: 1px solid var(--Colors-Use-Error-Border);
    color: var(--Colors-Use-Error-Primary);

    .cve-list-severity {
        border-right: 1px solid var(--Colors-Use-Error-Border);
        background-color: var(--Colors-Use-Error-Bg-Hover);
    }
}

.database-update-messages {
    color: var(--Colors-Use-Neutral-Text-1-Title);
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.cve-inspect {
    padding: 12px;
    padding-top: 0;
    height: 100%;

    .cve-description {
        height: 100%;
        // overflow-y: overlay;
        border: 1px solid var(--Colors-Use-Neutral-Border);

        :global {
            .ant-descriptions-bordered .ant-descriptions-view {
                border: 0;
            }

            .ant-descriptions-bordered .ant-descriptions-item-label,
            .ant-descriptions-bordered .ant-descriptions-item-content {
                border-right: 1px solid var(--Colors-Use-Neutral-Border);
            }

            .ant-descriptions-item-label {
                padding: 12px 16px 12px 12px;
                color: var(--Colors-Use-Neutral-Text-1-Title);
                height: 40px;
                min-width: 96px;
            }

            .ant-descriptions-bordered .ant-descriptions-row {
                border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
            }

            .ant-descriptions-bordered .ant-descriptions-item-label {
                background-color: var(--Colors-Use-Neutral-Bg-Hover);
            }

            .ant-descriptions-item-content {
                height: 40px;
                padding: 12px 16px 12px 12px;
                background-color: var(--Colors-Use-Neutral-Bg);
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }

            .ant-descriptions-bordered .ant-descriptions-item-label:last-child,
            .ant-descriptions-bordered .ant-descriptions-item-content:last-child {
                border-right: none;
            }
        }

        .description-content {
            overflow-y: overlay;
            height: calc(100% - 32px);
        }

        .cve-description-heard {
            height: 32px;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
            background-color: var(--Colors-Use-Basic-Background);
            // position: sticky;
            // top: 0;

            .cve-description-heard-title {
                font-weight: 500;
                font-size: 12px;
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }
        }
    }

    .cve-description-icon {
        cursor: pointer;

        svg {
            color: var(--Colors-Use-Neutral-Text-1-Title);
            height: 16px;
            width: 16px;

            &:hover {
                color: var(--Colors-Use-Main-Primary);
            }
        }
    }

    .cwe-tag {
        margin-bottom: 4px;
        margin-right: 4px;
        height: 20px;
        background-color: var(--Colors-Use-Basic-Background);
        border: 1px solid var(--Colors-Use-Neutral-Border);
        border-radius: 4px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
        padding: 3px 6px;
        font-weight: 500;
        font-size: 11px;
        line-height: 14px;
        display: inline-flex;
        cursor: pointer;

        &:hover {
            border-color: var(--Colors-Use-Main-Hover);
            color: var(--Colors-Use-Main-Primary);
        }
    }
}

.no-more {
    font-size: 12px;
    color: var(--Colors-Use-Neutral-Disable);
    text-align: center;
    padding: 12px;
    width: 100%;
}

.databaseUpdateModal {
    top: 25vh;
}

.database-update-content {
    min-height: 30px;
    max-height: 400px;
    overflow-y: auto;
    .hint-content-proxy {
        display: flex;
        align-items: center;
        height: 28px;
        margin-bottom: 8px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
        font-size: 12px;
    }
}

.cve-query {
    min-width: 300px;
    border-right: 1px solid var(--Colors-Use-Neutral-Border);
    :global {
        .ant-collapse {
            padding: 8px 12px 0px;
        }
        .ant-collapse > .ant-collapse-item > .ant-collapse-header {
            padding: 0;
        }
    }
    .cve-query-heard {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 12px 12px;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        height: 44px;
        font-size: 12px;
        line-height: 16px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
    }
    .cve-query-body {
        display: flex;
        flex-direction: column;
        padding: 8px 12px;
        .cve-query-text {
            display: flex;
            justify-content: space-between;
            font-weight: 500;
            font-size: 12px;
            line-height: 16px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            cursor: pointer;
            padding-bottom: 12px;

            .cve-query-resetting {
                color: var(--Colors-Use-Error-Primary);
                &:hover {
                    color: var(--Colors-Use-Error-Border);
                }
                &:active {
                    color: var(--yakit-danger-6);
                }
            }
        }
        .cve-query-item {
            display: flex;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            font-weight: 400;
            font-size: 12px;
            line-height: 16px;
            margin-left: 24px;
            margin-bottom: 12px;
            :first-child {
                margin-right: 4px;
            }
        }
    }
}

.download-progress {
    margin-bottom: 12px;
}

.cwe-tabs {
    :global {
        .ant-tabs-nav {
            background-color: var(--Colors-Use-Neutral-Bg) !important;
            position: sticky;
            top: 0;
        }
        .ant-tabs-nav-wrap {
            height: 31px;
            overflow: initial !important;
        }
        .ant-tabs-tab {
            background-color: var(--Colors-Use-Neutral-Bg) !important;
            border-radius: 0 !important;
            // border-top: 1px solid var(--Colors-Use-Neutral-Border) !important;
        }
        .ant-tabs-tab-active {
            border-radius: 0;
            background-color: var(--Colors-Use-Neutral-Bg-Hover) !important;
            border-top-width: 0 !important;
            &::before {
                content: "";
                border-top: 2px solid var(--Colors-Use-Main-Border);
                width: calc(100% + 2px);
                position: absolute;
                height: 0;
                top: -1px;
                left: -1px;
            }
        }
        .ant-tabs-content-holder {
            overflow-y: overlay;
        }
    }
}
.heard-right-operation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    .icon-remove {
        color: var(--Colors-Use-Neutral-Disable);
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        svg {
            width: 16px;
            height: 16px;
        }

        :hover {
            color: var(--Colors-Use-Main-Hover);
        }
    }
}

.shell-table-drawer {
    :global {
        .ant-drawer-body {
            padding: 4px 16px 16px;
            overflow: hidden;
        }
    }
}
